package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.VehicleBean;
import com.molichuxing.services.infrastructure.bean.VehicleModelParamBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 车型 Mapper 接口
 * </p>
 *
 * @author
 * @since 2019-08-12
 */
public interface VehicleParamMapper extends RootMapper<VehicleModelParamBean> {

  /**
   * 根据车型ID和车型参数key查询车型参数value
   * @param modelId
   * @param paramNames
   * @return
   */
  public List<VehicleModelParamBean> getParamByModelId(@Param("modelId") Integer modelId, @Param("paramNames") List<String> paramNames, @Param("paramBasic") Integer paramBasic);

  /**
   * 按照顺序返回数据格式
   * @param modelId
   * @param paramBasic
   * @return
   */
  public List<VehicleModelParamBean> findParamSort(@Param("modelId")Integer modelId,@Param("paramBasic") Integer paramBasic);

}
